package com.icity.mapper;

import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.icity.entity.behavior.BehaviorEvent;
import com.icity.entity.behavior.BehaviorVisit;

@Mapper
public interface BehaviorMapper {
    //查询菜单数量
	@Select("<script>"
			+"select count(id) from tbl_statistics_behavior_event where 1 = 1"
			+ " </script>")
    int getEventCount(Map<Object,Object> map);

    //查询菜单
	@Select("<script>"
			+"select * from tbl_statistics_behavior_event where 1 = 1 "
			+ "limit #{page},#{limit}"
			+ " </script>")
    List<BehaviorEvent> getEventList(Map<Object,Object> map);

    //查询菜单数量
	@Select("<script>"
			+"select count(id) from tbl_statistics_behavior_visit where 1 = 1"
			+ " </script>")
    int getVisitCount(Map<Object,Object> map);

    //查询菜单
	@Select("<script>"
			+"select * from tbl_statistics_behavior_visit where 1 = 1 "
			+ "limit #{page},#{limit}"
			+ " </script>")
    List<BehaviorVisit> getVisitList(Map<Object,Object> map);
}
